package com.example.commonutil.controller;


import com.example.commonutil.service.LoadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/util")
public class TestController {
    @Autowired
    private LoadService loadService;

    @RequestMapping(path = "/load", method = RequestMethod.GET)
    public String getForDay() {
        return loadService.loadmenu();
    }

    @RequestMapping(path = "/load1", method = RequestMethod.GET)
    public String getForDay1() {
        return loadService.loadlocalmenu();
    }
}
